]> git.r.bdr.sh - rbdr/map/blobdiff - Map/Presentation/Base Components/MapRender/MapEdges.swift
Map 3 first commit: files, groups and layout
[rbdr/map] / Map / Presentation / Base Components / MapRender / MapEdges.swift
index 38144951d20e224c5f4c4b094f0a64baf77c5cc0..2af7089257b2a6e93f1fb3a770f198d5c6a1f43b 100644 (file)
@@ -65,15 +65,13 @@ struct MapEdges: View {
   }
 }
 
-struct MapEdges_Previews: PreviewProvider {
-  static var previews: some View {
-    MapEdges(
-      mapSize: CGSize(width: 400.0, height: 400.0), lineWidth: 1.0,
-      vertexSize: CGSize(width: 25.0, height: 25.0),
-      edges: [
-        MapEdge(
-          id: 1, origin: CGPoint(x: 2.0, y: 34.0), destination: CGPoint(x: 23.0, y: 76.2),
-          arrowhead: true)
-      ])
-  }
+#Preview {
+  MapEdges(
+    mapSize: CGSize(width: 400.0, height: 400.0), lineWidth: 1.0,
+    vertexSize: CGSize(width: 25.0, height: 25.0),
+    edges: [
+      MapEdge(
+        id: 1, origin: CGPoint(x: 2.0, y: 34.0), destination: CGPoint(x: 23.0, y: 76.2),
+        arrowhead: true)
+    ])
 }